﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="~/Admin/VerSolicitudes.aspx.cs" Inherits="Admin_VerSolicitudes" Title="Cordoba Presta" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="270">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="100">
         <ProgressTemplate>
            <img alt="" height="20" src="../Images/25-1.gif" />
            &nbsp;&nbsp; Buscando Solicitudes
        </ProgressTemplate>
    </asp:UpdateProgress>               
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width:100%" >
            <tr>
                <td style="width:33%" align="right">
                    <asp:Label ID="lblFechaD" runat="server" Text="Fecha Desde:"></asp:Label> 
                    <asp:TextBox ID="txtFechaD" runat="server" Columns="8"></asp:TextBox></td>
                <td align="center"  style="width:34%">
                    <asp:Label ID="lblFechaH" runat="server" Text="Fecha Hasta:"></asp:Label>
                    <asp:TextBox ID="txtFechaH" runat="server" Columns="8"></asp:TextBox></td>
                <td  style="width:33%" align="left">
                    &nbsp;<asp:Label ID="lblEstado" runat="server" Text="Estado:"></asp:Label>
                    <asp:DropDownList ID="cbopEstado" runat="server" CssClass="combo" Width="30%">
                        <asp:ListItem Value="0">Ingresadas</asp:ListItem>
                        <asp:ListItem Value="1">En Evaluacion</asp:ListItem>
                        <asp:ListItem Value="2">Aprobadas</asp:ListItem>
                        <asp:ListItem Value="3">Rechazadas</asp:ListItem>
                        <asp:ListItem Value="4">Incompletas</asp:ListItem>
                        <asp:ListItem Value="5">Anuladas</asp:ListItem>
                        <asp:ListItem Value="6">Finalizadas</asp:ListItem>
                        <asp:ListItem Value="9">Todas</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 19px">
                    </td>
                <td align="center" style="height: 19px">
                    &nbsp;<asp:Button ID="btnVer" runat="server" OnClick="btnVer_Click" Text="Ver" Width="70px" />
                </td>
                <td style="height: 19px">
                </td>
            </tr>
            <tr>
                <td style="height: 20px">
                </td>
                <td style="height: 20px">
                </td>
                <td style="height: 20px">
                </td>
            </tr>
            <tr>
                <td style="height: 20px" colspan="3">
                    <asp:GridView ID="gvSolicitudes" runat="server" CellPadding="4" ForeColor="#333333" AutoGenerateColumns="False" 
                            DataKeyNames="Id" GridLines="Vertical" OnPageIndexChanging="gvSolicitudes_PageIndexChanging"
                            OnRowDataBound="gvSolicitudes_RowDataBound" OnSelectedIndexChanged="gvSolicitudes_SelectedIndexChanged"
                            Width="100%">
                        <RowStyle BackColor="#E3EAEB" />
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#7C6F57" />
                        <AlternatingRowStyle BackColor="White"/>
                         <Columns>
                            <asp:TemplateField HeaderText="Id">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvId" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TDoc">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvTDoc" runat="server" Text='<%# Bind("TDoc") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="NDoc">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvTNDoc" runat="server" Text='<%# Bind("NDoc") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Nombre">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvNombre" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Apellido">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvApellido" runat="server" Text='<%# Bind("Apellido") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Te.">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvTel" runat="server" Text='<%# Bind("Tel") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mail">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvMail" runat="server" Text='<%# Bind("Mail") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Monto">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvMonto" runat="server" Text='<%# Bind("MontoSol") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Destino">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvDestino" runat="server" Text='<%# Bind("Destino") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Estado">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvEstado" runat="server" Text='<%# Bind("Estado") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="FechaEstado">
                                <HeaderStyle ForeColor="White" />
                                <ItemTemplate>
                                    <asp:Label ID="gvFechaEstado" runat="server" Text='<%# Bind("FechaEstado") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                         </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
     </ContentTemplate>
    </asp:UpdatePanel>
  </div>
 </asp:Content>

